package leetcode.D500.T417;

import util.GraphUtil;

import java.util.List;

public class M417 {
    public static void main(String[] args) {
        int[][] heights = GraphUtil.parseGraph("[[1,2,2,3,5],[3,2,3,4,4],[2,4,5,3,1],[6,7,1,4,5],[5,1,1,2,4]]");
        List<List<Integer>> results = new Solution().pacificAtlantic(heights);
        for(List<Integer> result : results) {
            System.out.println(result.get(0) + ", " + result.get(1));
        }
    }
}
